<?php
define('APP_DIR', 'app');
define("MODEL_DIR", "model");
define("CONTROLLER_DIR", "controller");
define("VIEW_DIR", "view");
define("DEIA_DIR", "deia");
define("PLUGINS_DIR", "plugins");
define("PUBLIC_DIR", "public");
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));

define("CONTROLLER","_controller");
define("MODEL","_model");

$params = explode("/", $_GET['params']);
define("FILE", $params[0]);

set_include_path(
    get_include_path() . PATH_SEPARATOR .
    ROOT . PATH_SEPARATOR .
    ROOT . DS . APP_DIR . PATH_SEPARATOR .
    ROOT . DS . APP_DIR . DS . CONTROLLER_DIR . PATH_SEPARATOR .
    ROOT . DS . APP_DIR . DS . MODEL_DIR . PATH_SEPARATOR .
    ROOT . DS . APP_DIR . DS . VIEW_DIR . PATH_SEPARATOR .
    ROOT . DS . APP_DIR . DS . DEIA_DIR . PATH_SEPARATOR .
    ROOT . DS . ".." . DS . APP_DIR . DS . PATH_SEPARATOR .
    ROOT . DS . ".." . DS . APP_DIR . DS . DEIA_DIR . PATH_SEPARATOR .
    ROOT . DS . ".." . DS . PLUGINS_DIR . PATH_SEPARATOR
);